<?php

namespace AdminPanel\ContentConfigBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class ContentCategoryType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('categoryName')
            ->add('categoryType')
            ->add('isActive')
            ->add('createdUserId')
            ->add('createdAt')
            ->add('updatedUserId')
            ->add('updatedAt')
            ->add('createdUserIp')
        ;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'AdminPanel\ContentConfigBundle\Entity\ContentCategory'
        ));
    }

    public function getName()
    {
        return 'adminpanel_contentconfigbundle_contentcategorytype';
    }
}
